export enum MessageEventNameRegister {
    USERINFO = 'userInfo',
    PATCHROOMSETTING = 'patchRoomSetting',
    LOGOUT = 'logout',
    ROOMSETTINGS = 'roomSettings'
}



export interface IMessageEmitterData {
    callback: (res: any) => void;
    [index: string]: any
}

export interface MessageEmitterReq {
    cmd: MessageEventNameRegister,
    data: Partial<IMessageEmitterData> | null,
}

export interface MessageEmitterResp extends MessageEmitterReq {
    [key: string]: unknown;
}